package com.csx.framework.springboot.sample.event;

import org.springframework.util.ErrorHandler;

/**
 * <p> what does this class do ? </p>
 * <p> How does it work ?</p>
 * <p> Why does it do this ?</p>
 *
 * @author cuisongxu
 * @date 2024/2/27 周二 16:23
 */
public class CustomApplicationEventErrorHandler implements ErrorHandler {

    @Override
    public void handleError(Throwable t) {
        System.out.println("处理错误,错误信息: " + t.getMessage());
    }
}
